import request from '@/utils/request'

// 查询TempComster列表
export function listComster(query) {
  return request({
    url: '/public/comster/list',
    method: 'get',
    params: query
  })
}

// 查询TempComster详细
export function getComster(id) {
  return request({
    url: '/public/comster/' + id,
    method: 'get'
  })
}

// 新增TempComster
export function addComster(data) {
  return request({
    url: '/public/comster',
    method: 'post',
    data: data
  })
}

// 修改TempComster
export function updateComster(data) {
  return request({
    url: '/public/comster',
    method: 'put',
    data: data
  })
}

// 删除TempComster
export function delComster(id) {
  return request({
    url: '/public/comster/' + id,
    method: 'delete'
  })
}
